package ex_class;

public class EnumExam {
	public static void main(String[] args) {
		Race MyTeam;
		MyTeam = Race.PROTOSS;
		System.out.println(MyTeam);
		System.out.println(MyTeam.getHanName());
		
		for (Race r : Race.values()) {
			System.out.println(r);
		}
		
		Race YourTeam = Race.valueOf("PROTOSS");
		System.out.println(YourTeam);
		
		System.out.println("-------------------------");
		
		JavaType type;
		type = JavaType.INT;
		
		System.out.println("타입 : " + type + ", 이름 : " + 
				type.getName() + ", 길이 : " + type.getLength());
		
	}
}
